#if !defined(__PRAY_CORE_PURPOSEUI_H)
#define __PRAY_CORE_PURPOSEUI_H

@protocol EditPurposeViewDelegate

- (void)onSavePurpose:(NSString*)newPurpose;

@end

@class EditPurposeViewController;

@interface EditPurposeViewController : BaseViewController 
{
	UITextView*						_purposeView;
	NSString*						_purpose;
	NSString*						_filename;
	
	PurposeDataList*				_purposeDataList;
	id <EditPurposeViewDelegate>	_delegate;
	UIActivityIndicatorView*		_progress;
}

@property (nonatomic, assign) id <EditPurposeViewDelegate>		delegate;

- (id)initWithPurpose:(NSString*)purpose rootViewController:(PrayViewController*)rootViewController filename:(NSString*)filename;

@end

@interface PurposeHistoryViewController : BaseTableViewController <EditPurposeViewDelegate>
{
	NSInteger						_numberOfRow;
	NSString*						_filename;
	
	PurposeDataList*				_purposeDataList;
	id <EditPurposeViewDelegate>	_delegate;
	UIActivityIndicatorView*		_progress;
}

@property (nonatomic, assign) id <EditPurposeViewDelegate>		delegate;

- (id)initWithRootViewController:(PrayViewController *)rootViewController withStyle:(UITableViewStyle)style andFileName:(NSString*)filename;

@end

#endif // !__PRAY_CORE_PURPOSEUI_H